package top.suven.base.http.enums;

/**
 * @ClassName:
 * @Description:
 * @Author aric
 * @Date 2018/5/29 下午4:10
 * @Copyright: (c) 2018 gc by https://www.gc.com.cn/
 * @Version : 1.0.0
 * --------------------------------------------------------
 * modifyer    modifyTime                 comment
 * <p>
 * --------------------------------------------------------
 */
public enum PadGradeEnumType {
    FREE("0", "普通"), VIP("1","VIP"), TASTE("2", "体验"), SVIP("3", "SVIP"),GAME("4","游戏试玩"),GVIP("5","GVIP");
    private String value;
    private String name;
    public String getValue() {
        return value;
    }
    public String getName() {
        return name;
    }
    PadGradeEnumType(String value, String name) {
        this.value = value;
        this.name = name;
    }
    public static PadGradeEnumType getByValue(String value) {
        for(PadGradeEnumType typeEnum : PadGradeEnumType.values()) {
            if(typeEnum.value.equals(value)) {
                return typeEnum;
            }
        }
        throw new IllegalArgumentException("No element matches " + value);
    }

}
